package com.terrynoya.fight.stateMachine.controllers
{
	import com.terrynoya.fight.char.Character;
	import com.terrynoya.fight.combat.Helper;
	import com.terrynoya.fight.stateMachine.StateController;
	
	public class DestroySelf extends StateController
	{
		public function DestroySelf(name:String)
		{
			super(name);
		}
		
		override public function run(character:Character):void
		{
			var helper:Helper = character as Helper;
			if(helper == null)
			{
				return;
			}
			helper.remove();
		}
	}
}